; 将 first，second 段 一一对应相加，然后把相加的值放在three段中
assume cs:code 

first segment
    db 1,2,3,4,5,6,7,8,9 ; db 定义字节型数据
first ends

second segment
    db 1,2,3,4,5,6,7,8,9
second ends

three segment
    db 0,0,0,0,0,0,0,0,0
three ends

code segment

start:
    ; 数据从哪里来 放到那里去
    mov ax, three

    mov es, ax

    mov ax, first

    mov ds, ax

    mov ax, second

    mov ss, ax

    mov sp,0

    mov cx, 9
    mov bx, 0
    mov ax, 0
sum:
    mov al, ds:[bx] 
    mov dl, ss:[bx]
    add al, dl
    mov es:[bx], al
    inc bx
    loop sum
code ends

end start